<?php
if(!isset($userdata['username'])) 
	echo "<a class='log' href='".site_url('auth/login')."'><div id='login' class='grey'>Login</div></a>";
else
	echo "<a class='log' href='".site_url('auth/logout')."'><div id='logout' class='grey'>Logout</div></a>";
?>